<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
 if($controller = JRequest::getVar('controller')) 
  {
   require_once( JPATH_COMPONENT.DS.'models'.DS.'mallkit.php' );
   require_once( JPATH_COMPONENT.DS.'views'.DS.$controller.DS.'view.php' );
  }
 else 
  {
  require_once( JPATH_COMPONENT.DS.'models'.DS.'mallkit.php' );
  require_once (JPATH_COMPONENT.DS.'views'.DS.'default'.DS.'view.php');

  }
$classname  = 'MallkitController_'.$controller;
$controller = new $classname( array('default_task' => 'display') );
$controller->execute( JRequest::getVar('task' ));
$controller->redirect(); 
?>